import com.alibaba.fastjson.JSONObject;
import com.qx.chat.system.event.Event;
import com.qx.chat.system.event.UserEvent;
import com.qx.chat.system.message.Data;
import com.qx.chat.system.message.TextMessage;


public class Main {

	public static void main(String[] args) {
//		Data message = Data.buildTextMessage("aaa", "1", "2");
		
		Data<Event> e = Data.buildEventMessage(new UserEvent.Login());
		System.out.println(JSONObject.toJSONString(e));
		
		Data<TextMessage> d = Data.buildTextMessage("测试", "1", "2");
		System.out.println(JSONObject.toJSONString(d));
	}
}
